package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.util.Date;

@Data
/**
 * 客诉工单站内信对象 ks_letter
 *
 * @author hjf
 * @date 2025-07-29
 */
public class KsLetter extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 客诉id
     */
    @Excel(name = "客诉id")
    private String ksId;

    /**
     * 订单编码
     */
    @Excel(name = "订单编码")
    private String orderId;

    /**
     * 提交人
     */
    @Excel(name = "提交人")
    private Long issuerUser;

    /**
     * 审核人
     */
    @Excel(name = "审核人")
    private Long auditUser;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 提交内容
     */
    @Excel(name = "提交内容")
    private String issuerContent;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date issuerTime;

    /**
     * 回复内容
     */
    @Excel(name = "回复内容")
    private String replyContent;

    /**
     * 回复时间
     */
    @JsonFormat(pattern = "MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date replyTime;

    /**
     * 0默认1同意2不同意3延后处理
     */
    @Excel(name = "0默认1同意2不同意3延后处理")
    private Long isAgree;


    @Transient
    private String issuerUserName;

    private String ksContent;

    @Transient
    private String content;

    @Transient
    private String auditName;

}
